package com.gitee.qdbp.general.common.biz.site.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.gitee.qdbp.able.exception.ServiceException;
import com.gitee.qdbp.able.jdbc.ordering.OrderPaging;
import com.gitee.qdbp.able.jdbc.paging.PageList;
import com.gitee.qdbp.general.common.api.site.basic.IPlaceDefineBasic;
import com.gitee.qdbp.general.common.api.site.model.place.PlaceDefineBean;
import com.gitee.qdbp.general.common.api.site.model.place.PlaceDefineWhere;
import com.gitee.qdbp.general.common.api.site.service.IPlaceDefineQueryer;

/**
 * 位置定义业务处理类
 *
 * @author zhh
 * @version 171012
 */
@Service
@Transactional(readOnly = true)
public class PlaceDefineQueryer implements IPlaceDefineQueryer {

    /** 位置定义DAO **/
    @Autowired
    private IPlaceDefineBasic placeDefineBasic;

    @Override
    public PlaceDefineBean find(String id) throws ServiceException {
        return placeDefineBasic.findById(id);
    }

    @Override
    public PlaceDefineBean find(PlaceDefineWhere where) throws ServiceException {
        return placeDefineBasic.find(where);
    }

    @Override
    public PageList<PlaceDefineBean> list(PlaceDefineWhere where, OrderPaging paging) throws ServiceException {
        return placeDefineBasic.list(where, paging);
    }

}